﻿@model IEnumerable<MvcCart.Models.Cart>



<table class="table table-striped">
    <tr>
        <th>购物车ID</th>
        <th>商品名称</th>
        <th>商品数量</th>
        <th>商品价格</th>
        <th>用户名</th>
        <th>创建时间</th>
        <th colspan="2">操作</th>
    </tr>


    @foreach (var m in Model)
    {
        <tr>
            <td>@m.CartId</td>
            <td>@m.ProductId</td>
            <td>@m.ProductNum</td>
            <td>@m.Price</td>
            <td>@m.UserId</td>
            <td>@m.Createtime.Date.ToShortDateString()</td>
            <td><a href="Edit/@m.Id">编辑</a></td>
            <td><a href="Delete/@m.Id">删除</a></td>
        </tr>

    }
</table>
